package com.itheima.extends2modifiler;

public class People {
    private String name;

    private int age;

    public void publicMethod() {
    	System.out.println("publicMethod");
    }

    protected void protectedMethod() {
    	System.out.println("protectedMethod");
    }

    void defaultMethod() {
    	System.out.println("defaultMethod");
    }

    private void privateMethod() {
    	System.out.println("privateMethod");
    }

    public void test() {
    	publicMethod();
    	protectedMethod();
    	defaultMethod();
    	privateMethod();
    }

}
